﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;

namespace ChatApplication_Wpf.Helpers
{
    public class CommandInputConverter : IMultiValueConverter
    {
        public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            var commandInput = default(CommandInput<object, object>);

            if (values != default(object[]))
                commandInput = new CommandInput<object, object>
                {
                    Input1 = values[0],
                    Input2 = values[1]
                };

            return commandInput;
        }

        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
